2008-06-03 Jan Heller <jheller@svn.gnome.org>
Added babl_get_version () to the public API.
* babl/Makefile.am: Added babl-version.h to library_include_HEADERS.
* babl/babl-version.h.in: Added macros to expand to babl version
information.
* babl/babl.c (babl_get_version): Implemented.
* babl/babl.h: Include babl-version.h, declare babl_get_version ().
* configure.ac: Added babl-version.h to AC_CONFIG_FILES.
svn path=/trunk/; revision=318
+2008-06-03 Jan Heller <jheller@svn.gnome.org>
+
+ Added babl_get_version () to the public API.
+
+ * babl/Makefile.am: Added babl-version.h to library_include_HEADERS.
+ * babl/babl-version.h.in: Added macros to expand to babl version
+ information.
+ * babl/babl.c (babl_get_version): Implemented.
+ * babl/babl.h: Include babl-version.h, declare babl_get_version ().
+ * configure.ac: Added babl-version.h to AC_CONFIG_FILES.
+
2008-05-23 Jan Heller <jheller@svn.gnome.org>
* extensions/sse-fixups.c (init): Fixed conditionally compiled code.
babl-image.h \
babl-model.h \
babl-sampling.h \
- babl-type.h
+ babl-type.h \
+ babl-version.h
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/babl/base
babl_memory_sanity ();
}
}
+
+void
+babl_get_version (int *major,
+ int *minor,
+ int *micro)
+{
+ if (major != NULL)
+ *major = BABL_MAJOR_VERSION;
+
+ if (minor != NULL)
+ *minor = BABL_MINOR_VERSION;
+
+ if (micro != NULL)
+ *micro = BABL_MICRO_VERSION;
+}
*/
void babl_destroy (void);
+/** Get the version information on the babl library */
+void babl_get_version (int *major,
+ int *minor,
+ int *micro);
+
#if __GNUC__ >= 4
#define BABL_ARG_NULL_TERMINATED __attribute__((__sentinel__))
#else
void babl_introspect (Babl *babl); /* introspect a given BablObject */
+#include "babl-version.h"
#include "babl-type.h"
#include "babl-sampling.h"
#include "babl-component.h"
Makefile
babl.pc
babl/Makefile
+babl/babl-version.h
babl/base/Makefile
docs/Makefile
docs/index-static.html